package com.weimob.mcloud.wechatwork.customer.service;

import com.weimob.mcloud.wechatwork.core.entity.relation.tag.Tag;
import com.weimob.mcloud.wechatwork.core.entity.relation.tag.TagGroup;

import java.util.List;

/**
 * @author junlong.lv
 * @version 1.0
 * @date 2022/3/22 3:01 下午
 */
public interface TagBaseService {

    Boolean batchInsertTagGroup(List<TagGroup> tagGroupList, String corpId);

    Boolean batchUpdateTagGroup(List<TagGroup> tagGroupList, String corpId);

    Boolean batchInsertTag(List<Tag> tagList, String corpId);

    Boolean batchUpdateTag(List<Tag> tagList, String corpId);

    List<TagGroup> queryGroupByGroupIds(String corpId, List<String> tagGroupIds);

    List<TagGroup> queryGroupByCorpId(String corpId);

    List<Tag> queryTagByGroupId(String corpId, String groupId);

    List<Tag> queryTagByTagIds(String corpId, List<String> tagIdList, Boolean needFullInfo);

    Boolean deletedTagGroupByGroupIds(String corpId, List<String> tagGroupIds);

    Boolean deletedTagByTagIds(String corpId, List<String> tagIds);
}
